//
//  JieRuCell.m
//  BrushFace
//
//  Created by timer_q on 15/12/26.
//  Copyright © 2015年 Zzz. All rights reserved.
//

#import "JieRuCell.h"
#import "NavHelper.h"

@implementation JieRuCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)cellType:(NSInteger)type{
    _currentType = type;
    switch (type) {
        case 8:case 10:
        case 7:case 6:
        case 2:case 700:
        case 4:case 3:case 9:case 13:
        case 5:
        {
            self.cellTopLabel.hidden = YES;
            self.cellDownLabel.hidden = YES;
            self.cellStatuLabel.hidden = NO;
            if (type == 8||type == 10) {
                self.cellStatuLabel.text = @"已还款";
                self.cellStatuImage.image = [UIImage imageNamed:@"yihuan"];
            }else if(type == 7||type == 6){
                self.cellStatuLabel.text = @"已流标";
                self.cellStatuImage.image = [UIImage imageNamed:@"liubiao"];
            }else if(type == 700||type == 2){
                self.cellStatuLabel.text = @"已满标";
                self.cellStatuImage.image = [UIImage imageNamed:@"manbiao"];
            }else if (type == 4||type == 3||type == 13||type == 9){
                self.cellStatuLabel.text = @"还款中";
                self.cellStatuImage.image = [UIImage imageNamed:@"huankuaning"];
            }else{
                self.cellStatuLabel.text = @"已逾期";
                self.cellStatuImage.image = [UIImage imageNamed:@"yuqi"];
            
            }
        }
            break;
        case 1:case 0:case 11:case 12:
        {
            self.cellTopLabel.hidden = NO;
            self.cellDownLabel.hidden = NO;
            self.cellStatuLabel.hidden = YES;
            if(type == AR_BORROW_BORROW_ING){
                self.cellTopLabel.text = @"已借";
                self.cellStatuImage.image = [UIImage imageNamed:@"chujiejindu"];
            }
        }
        default:
            break;
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
